var num_of_cats = 4; 
var open_in_newwindow=1; 
var option_array = new Array(num_of_cats);

option_array[0] = new Array("-- Pilih Ketegori --"); 
//Bursa Kerja
option_array[1] = new Array(
"a part of me",
"modal dengkul");

//Destination anywhere
option_array[2] = new Array(
"destination anywhere");

//kuliner
option_array[3] = new Array(
"rahasia dapur",
"food guide");

//hospot dan sosok
option_array[4] = new Array(
"hotspot",
"sosok");

//lensa jitu
option_array[5] = new Array(
"lensa jitu");

//kotaku cintaku
option_array[6] = new Array(
"what is a name",
"seandainya saya walikota",
"walikota menjawab",
"pemkot surakarta");

//entertainment
option_array[7] = new Array(
"to watch",
"this week events");

//love sex dan relationship
option_array[8] = new Array(
"kaisar cinta",
"my destiniy",
"blak-blakan",
"artikel love sex dan relationship");

//health dan leisure
option_array[9] = new Array(
"health dan leisure");

//fashion dan style
option_array[10] = new Array(
"style minggu ini",
"special discount",
"this week hottest");

option_array[11] = new Array(
"tips-tips seputar kendaraan",
"tips seputar elektronik",
"tips-tips seputar properti",
"tips-tips seputar pekerjaan"
);



function switch_select()

{
for (loop = window.document.adminForm.jenis.options.length-1; loop > 0; loop--)
{
window.document.adminForm.jenis.options[loop] = null;
}

for (loop = 0; loop < option_array[window.document.adminForm.kategori.selectedIndex].length; loop++)
{
window.document.adminForm.jenis.options[loop] = new Option(option_array[window.document.adminForm.kategori.selectedIndex][loop]);
} 
window.document.adminForm.jenis.selectedIndex = 0;
}